package com.ryzx.id.generator;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RequestMapping("/IDGenerator")
@RestController
public class IDGeneratorController {
    @GetMapping("/nextId")
    public long nextId(){
        return IDGenerator.nextId();
    }
}

